<?php

namespace api\components\helpers;

class Constant {

    // API STATUS
    const API_STATUS_SUCCESS = 1;
    const API_STATUS_FAILED = 0;
    const API_STATUS_PART_SUCCESS = 2;
    const API_STATUS_SYSTEM_ERROR = 3;

    public static $API_STATUS = array(
        self::API_STATUS_SUCCESS => "执行成",
        self::API_STATUS_FAILED => "全部执行失败",
        self::API_STATUS_PART_SUCCESS => "部分执行成功,部分执行失败",
        self::API_STATUS_SYSTEM_ERROR => "系统认证失败或者系统内部错误"
    );

    // API ERROR
    const API_SUCCESS = 200;
    const API_ERROR_MODEL_NO = 300;
    const API_ERROR_PARA_NO = 301;
    const API_ERROR_PARA_OUT_RANGE = 302;
    const API_ERROR_PARA_MORE_ZERO = 303;
    const API_ERROR_PARA_INT = 304;
    const API_ERROR_PARA_FORMAT = 305;
    const API_ERROR_PARA_UNSIGN_INT = 306;
    const API_ERROR_PARA_URL = 307;
    const API_ERROR_PARA_JSON_NO = 308;
    const API_ERROR_PARA_JSON_ERROR = 309;
    const API_ERROR_NO_INFO = 310;
    const API_ERROR_PARA_REPEAT = 311;
    const API_ERROR_PARA_MODIFY_NOT = 312;
    const API_ERROR_TB_MODEL_NO = 313;

    public static $API_ERROR = array(
        self::API_SUCCESS => "成功",
        self::API_ERROR_MODEL_NO => "接口不存在",
        self::API_ERROR_PARA_NO => "参数必须传入",
        self::API_ERROR_PARA_OUT_RANGE => "参数必须在允许值的范围内",
        self::API_ERROR_PARA_MORE_ZERO => "参数必须大于等于0",
        self::API_ERROR_PARA_INT => "参数必须为整数",
        self::API_ERROR_PARA_FORMAT => "参数格式错误",
        self::API_ERROR_PARA_UNSIGN_INT => "参数必须为正数",
        self::API_ERROR_PARA_URL => "参数必须为合法的URL",
        self::API_ERROR_PARA_JSON_NO => "参数必须为合法的JSON数据",
        self::API_ERROR_PARA_JSON_ERROR => "参数必须为API要求的JSON格式数据",
        self::API_ERROR_NO_INFO => "参数信息在数据库里不存在",
        self::API_ERROR_PARA_REPEAT => "参数信息在数据库里重复",
        self::API_ERROR_PARA_MODIFY_NOT => "参数信息不能被修改",
        self::API_ERROR_TB_MODEL_NO => "数据表对应的模型不存在",
    );

    // 状态
    const STATUS_VALID = 1;
    const STATUS_INVALID = 0;
    const STATUS_DELETE = -1;
    const STATUS_TO_VERIFY = 2;

    public static $STATUS = array(
        self::STATUS_VALID => '有效',
        self::STATUS_INVALID => '停用',
        self::STATUS_DELETE => '删除',
    );

    const DICT_CONTEXT_TYPE_CAMPAGIN_TYPE = 1;
    const DICT_CONTEXT_TYPE_CAMPAGIN_DISPLAY_STATUS = 2;
    const DICT_CONTEXT_TYPE_CAMPAGIN_STATUS = 3;
    const DICT_CONTEXT_TYPE_FEEDS_MATERIAL_TYPE = 4;
    const DICT_CONTEXT_TYPE_ADSET_TYPE = 12;
    const DICT_CONTEXT_TYPE_ADGROUP_STATUS = 11;
    const DICT_CONTEXT_TYPE_FEEDS_MATERIAL_STATUS = 10;
    const DICT_CONTEXT_TYPE_FEEDS_MATERIAL_URL_OPTIONS = 9; //点击地址 监测地址 是否填写
    const DICT_CONTEXT_TYPE_COMMON_STATUS = 101; //通用状态 只有 0启用 1暂停
    const DICT_CONTEXT_TYPE_COMMON_TYPE = 101; //通用状态 只有 0启用 1暂停
    const DICT_CONTEXT_TYPE_ROLE = 20;
    const DICT_COMMON_TYPE_INDUSTRY = 32;
    const DICT_COMMON_TYPE_COUNTRY = 33;
    const DICT_COMMON_TYPE_PROVINCE = 34;
    const DICT_COMMON_TYPE_CITY = 35;
    const DICT_COMMON_TYPE_GENDER = 41;
    const DICT_COMMON_TYPE_AGE = 42;
    const DICT_COMMON_TYPE_EDUCATION = 43;
    const DICT_COMMON_TYPE_APP_BEHAVIORS = 44;
    const DICT_COMMON_TYPE_DATA_SUPPLY_SEGMENT = 45;
    const DICT_COMMON_TYPE_ZAMP_SEGMENT = 46;
    const DICT_COMMON_TYPE_1ST_SEGMENT = 47;
    const CAMPAIGN_DISPLAY_STATUS_NOT_READY = 1;
    const CAMPAIGN_DISPLAY_STATUS_READY = 2;
    const CAMPAIGN_DISPLAY_STATUS_PAUSE = 3;
    const CAMPAIGN_DISPLAY_STATUS_COMPLETED = 4;
    // system_changelist表中 object_type 定义
    const CHANGE_LIST_CAMPAIGN = 1;
    const CHANGE_LIST_ADGROUP = 2;
    const CHANGE_LIST_AD = 3;
    const CHANGE_LIST_SEGMENT = 4;
    const CHANGE_LIST_TEMPLATE = 5;
    const CHANGE_LIST_ADVERTISER_CONFIG = 6;
    const CHANGE_LIST_MEDIA_SLOT = 7;
    const CHANGE_LIST_DISPLAY_TEMLATE = 10;
    const CHANGE_LIST_ADB_SEGMENT = 11;
    const CHANGE_LIST_DYNAMIC_VAD = 22;
    const CHANGE_LIST_VTITLE = 24;
    const CHANGE_LIST_VTEMPLATE = 25;
    // notification_template  type
    const TYPE_INBOX = 1;
    const TYPE_EMAIL = 2;
    const TYPE_SMS = 3;
    const TYPE_SYSTEM_NOTICE = 4;
    const TYPE_UPDATE_NOTICE = 5;

    public static $NOTIFICATION_TEMPLATE_TYPE = [
        self::TYPE_INBOX => 'INBOX',
        self::TYPE_EMAIL => 'EMAIL',
        self::TYPE_SMS => 'SMS',
        self::TYPE_SYSTEM_NOTICE => 'SYSTEM NOTICE',
        self::TYPE_UPDATE_NOTICE => 'UPDATE NOTICE',
    ];

    // notification_template business_type
    const BUSINESS_TYPE_SYSTEM = 1; // 系统
    const BUSINESS_TYPE_AUDIT = 2; // 审核
    const BUSINESS_TYPE_FINANCE = 3; // 财务
    const BUSINESS_TYPE_ACCOUNT = 4; // 账号

    public static $NOTIFICATION_TEMPLATE_BUSINESS_TYPE = [
        self::BUSINESS_TYPE_SYSTEM => '系统',
        self::BUSINESS_TYPE_AUDIT => '审核',
        self::BUSINESS_TYPE_FINANCE => '财务',
        self::BUSINESS_TYPE_ACCOUNT => '账号',
    ];

    // notification_template send_status
    const UNSENT = 0;
    const SENT_ERROR = 1;
    const SENT_SUCCESS = 2;

    public static $NOTIFICATION_TEMPLATE_SENT_STATUS = [
        self::UNSENT => '未发送',
        self::SENT_ERROR => '发送失败',
        self::SENT_SUCCESS => '发送成功'
    ];

    /*     * ************  notification template************ */

    // 审核消息
    const AUDIT_REFUSE = "审核被拒绝消息";
    // 广告主到账
    const BALANCE_IN = "广告主到账通知";
    // 广告主转出资金
    const BALANCE_OUT = "广告主转出通知";
    // 广告主账户余额不足0
    const NO_MONEY = "广告主账户余额为0预警";
    // 广告主账户余额不足200
    const NOT_ENOUGH_MONEY = "广告主账户余额不足200预警";
    // 广告主余额不足三日消耗
    const CAMPAIGN_LESS_THREE = "广告主账户余额不足3日消耗预警";
    // 广告计划到期
    const CAMPAIGN_EXPIRE = "广告计划已到期";
    // 广告计划达到日预算
    const CAMPAIGN_ADY_BUDGET = "广告计划消耗达到今日预算";
    const TASK_CREATE = "创意收到一个新的任务";
    // 创意绑定了创意集到任务
    const TASK_UPDATE_AM = "账户经理收到任务更新";
    const TASK_UPDATE_CREATIVE = "创意收到任务更新";
    const TASK_ACCELERATE = "账户经理提醒创意尽快做创意，创意收到提醒";
    const TASK_DELETE = "账户经理删除任务，创意收到提醒";
    const TASK_LOCK = "账户经理锁定任务，创意收到提醒";
    //设计模板图层类型
    const DESIGNTEMPLATE_LAYER_TYPE_BACKGROUND = 1; // 背景图
    const DESIGNTEMPLATE_LAYER_TYPE_MAIN = 2; // 商品图
    const DESIGNTEMPLATE_LAYER_TYPE_LOGO = 3; // LOGO
    const DESIGNTEMPLATE_LAYER_TYPE_LAYER = 4; // 前景图
    const DESIGNTEMPLATE_LAYER_TYPE_TITLE = 5; // 文案

    public static $DESIGNTEMPLATE_LAYER_TYPE = [
        self::DESIGNTEMPLATE_LAYER_TYPE_BACKGROUND => '背景图',
        self::DESIGNTEMPLATE_LAYER_TYPE_MAIN => '商品图',
        self::DESIGNTEMPLATE_LAYER_TYPE_LOGO => 'LOGO',
        self::DESIGNTEMPLATE_LAYER_TYPE_LAYER => '前景图',
        self::DESIGNTEMPLATE_LAYER_TYPE_TITLE => '文案',
    ];

    //图片类型定义
    const CREATIVE_CENTER_IMAGE_TYPE_BIG = 1;
    const CREATIVE_CENTER_IMAGE_TYPE_SMALL = 2;
    const CREATIVE_CENTER_IMAGE_TYPE_THREE = 3;
    const CREATIVE_CENTER_IMAGE_TYPE_INSERT = 4;
    const CREATIVE_CENTER_IMAGE_TYPE_OPEN = 5;
    const CREATIVE_CENTER_IMAGE_TYPE_BANNER = 6;

    public static $FEEDS_MATERIAL_PICTURE_TYPE = [
        self::CREATIVE_CENTER_IMAGE_TYPE_BIG => '大图',
        self::CREATIVE_CENTER_IMAGE_TYPE_SMALL => '小图',
        self::CREATIVE_CENTER_IMAGE_TYPE_THREE => '三图',
        self::CREATIVE_CENTER_IMAGE_TYPE_INSERT => '插屏',
        self::CREATIVE_CENTER_IMAGE_TYPE_OPEN => '开屏',
        self::CREATIVE_CENTER_IMAGE_TYPE_BANNER => '横幅',
    ];

    //创意集状态
    const CREATIVATE_STATUS_VALID = 0;
    const CREATIVATE_STATUS_INVALID = 1;
    const CREATIVATE_STATUS_DELETE = -1;

    public static $CREATIVATE_STATUS = array(
        self::CREATIVATE_STATUS_VALID => '有效',
        self::CREATIVATE_STATUS_INVALID => '停用',
        self::CREATIVATE_STATUS_DELETE => '删除',
    );

    const TASK_STATUS_VALID = 0;
    const TASK_STATUS_DELETE = 1;
    const TASK_STATUS_LOCK = 2;

    public static $TASK_STATUS = [
        self::TASK_STATUS_VALID => '正常',
        self::TASK_STATUS_DELETE => '删除',
        self::TASK_STATUS_LOCK => '锁定',
    ];

    const TASK_BIND = 1;
    const TASK_UNBOUND = 0;

    public static $TASK_IS_BIND = [
        self::TASK_BIND => '绑定',
        self::TASK_UNBOUND => '未绑定',
    ];

    const ADSET_STATUS_VALID = 0;
    const ADSET_STATUS_STOP = 1;
    const ADSET_STATUS_DELETE = 2;

    public static $ADSET_STATUS = [
        self::ADSET_STATUS_VALID => '有效',
        self::ADSET_STATUS_STOP => '暂停',
        self::ADSET_STATUS_DELETE => '删除',
    ];
    /*---------事件状态----------*/
    const EVENT_STATE_CHANGE = 'object_state_event';
    const EVENT_STATE_ACCEPT = 'object_accept_event';
    const EVENT_STATE_CASE = 'object_case_event';
    const EVENT_STATE_NOT_CASE = 'object_not_case_event';

    //事件定义
    const EVENT_OBJECT_CREATE = 'object_create_event';
    const EVENT_OBJECT_UPDATE = 'object_update_event';
    const EVENT_OBJECT_BATCH_UPDATE = 'object_batch_update_event';
    const EVENT_OBJECT_HAS_UPDATE = 'object_has_update_event';
    const EVENT_OBJECT_VALIDATE = 'object_validate_event';
    const EVENT_BILLING_AFTER_SAVE = 'billing_save';
    const EVENT_TASK_AFTER_SAVE = 'task_save';
    const EVENT_TASK_RELATE = 'task_relate_creative_center';
    const EVENT_CREATIVE_RELATE = 'creative_center_relate_task'; // 创建创意集时绑定任务
    const EVENT_ADSET = 'adset';
    const EVENT_CREATIVE_CENTER_UPDATE = 'creative_center_update';
    const EVENT_OBJECT_DELETE = 'object_delete_event';
    const USER_SIGNID_SAVE = 'object_user_signid_save';
    // 区别于站内信，消息红点
    const EVENT_RECORD_TASK_AFTER_SAVE = 'record_task_save';
    const EVENT_RECORD_TASK_RELATE = 'record_task_relate_creative_center';
    const EVENT_RECORD_CREATIVE_RELATE = 'record_creative_center_relate_task'; // 创建创意集时绑定任务
    const EVENT_RECORD_CREATIVE_CENTER_UPDATE = 'record_creative_center_update';
    const EVENT_RECORD_CREATIVE_UPDATE_TASK = 'record_creative_update_task';
    //上传图片size/数量限制
    const IMAGE_SIZE_MAXIMUM = 204800;
    const IMAGE_COUNT_MAXIMUM = 10;
    //planning
    const NEGATIVE_IN = 'In';
    const NEGATIVE_NOT_IN = 'NotIn';
    //sync sso
    const SYNC_SOURCE_SSO = 1;
    const SYNC_SOURCE_INTERNAL = 2;
    const SSO_ROLE_TYPE_SYSTEM_ADMIN = 1;
    const SSO_ROLE_TYPE_ACCOUNT_ADMIN = 2;
    const SSO_ROLE_TYPE_NORMAL_USER = 3;
    const SSO_ROLE_TYPE_HADOOP = 4;

    /*     * **********************dashboard_config****************** */
    const DASHBOARD_CHART_TYPE_PROGRESS = 'progress';               //消费进度
    const DASHBOARD_CHART_TYPE_COST = 'channel_cost';               //渠道花费
    const DASHBOARD_CHART_TYPE_DISPLAY = 'display';                 //展示数
    const DASHBOARD_CHART_TYPE_CLICKS = 'clicks';                   //点击数
    const DASHBOARD_CHART_TYPE_CONVERSIONS = 'conversions';         //转化数
    const DASHBOARD_CHART_TYPE_CPM = 'cpm';                         //CPM数
    const DASHBOARD_CHART_TYPE_CPC = 'cpc';                         //CPC数
    const DASHBOARD_CHART_TYPE_CTR = 'ctr';                         //CTR数
    const DASHBOARD_CHART_TYPE_CPA = 'cpa';                         //CPA数
    const DASHBOARD_CHART_TYPE_CITY = 'city';                       //受众地域分布
    const DASHBOARD_CHART_TYPE_BALANCE = 'balance';                 //账户余额
    const DASHBOARD_CHART_TYPE_SALES = 'sales';                     //销售线索
    const DASHBOARD_CHART_TYPE_APP_COST = 'app_cost';               //消费app Top10

    //图表分类

    public static $DASHBOARD_CHART_TYPE = [
        self::DASHBOARD_CHART_TYPE_PROGRESS => '今日消费进度',
        self::DASHBOARD_CHART_TYPE_COST => '分渠道消费',
        self::DASHBOARD_CHART_TYPE_DISPLAY => '展示数',
        self::DASHBOARD_CHART_TYPE_CLICKS => '点击数',
        self::DASHBOARD_CHART_TYPE_CONVERSIONS => '转化数',
        self::DASHBOARD_CHART_TYPE_CPM => 'CPM',
        self::DASHBOARD_CHART_TYPE_CPC => 'CPC',
        self::DASHBOARD_CHART_TYPE_CTR => 'CTR',
        self::DASHBOARD_CHART_TYPE_CPA => 'CPA',
        self::DASHBOARD_CHART_TYPE_CITY => '受众地域分布',
        self::DASHBOARD_CHART_TYPE_BALANCE => '账户余额',
        self::DASHBOARD_CHART_TYPE_SALES => '转发数',
        self::DASHBOARD_CHART_TYPE_APP_COST => '消费app Top10',
    ];
    //默认展示图表
    public static $DASHBOARD_CHART_DEFAULT = [
        self::DASHBOARD_CHART_TYPE_PROGRESS,
        self::DASHBOARD_CHART_TYPE_COST,
        self::DASHBOARD_CHART_TYPE_DISPLAY,
        self::DASHBOARD_CHART_TYPE_CLICKS,
        self::DASHBOARD_CHART_TYPE_CONVERSIONS,
    ];
    //需要配置图表属性的图表
    public static $DASHBOARD_CHART_STYLE_DEFAULT = [
        self::DASHBOARD_CHART_TYPE_PROGRESS => self::DASHBOARD_CHART_STYLE_TYPE_PIE,
        self::DASHBOARD_CHART_TYPE_COST => self::DASHBOARD_CHART_STYLE_TYPE_BAR,
        self::DASHBOARD_CHART_TYPE_DISPLAY => self::DASHBOARD_CHART_STYLE_TYPE_SCATTER,
        self::DASHBOARD_CHART_TYPE_CLICKS => self::DASHBOARD_CHART_STYLE_TYPE_SCATTER,
        self::DASHBOARD_CHART_TYPE_CONVERSIONS => self::DASHBOARD_CHART_STYLE_TYPE_SCATTER,
    ];

    const DASHBOARD_CHART_STYLE_TYPE_GAUGE = 'gauge';
    const DASHBOARD_CHART_STYLE_TYPE_LINE = 'line';
    const DASHBOARD_CHART_STYLE_TYPE_BAR = 'bar';
    const DASHBOARD_CHART_STYLE_TYPE_SCATTER = 'scatter';
    const DASHBOARD_CHART_STYLE_TYPE_PIE = 'pie';

    //图表样式
    public static $DASHBOARD_CHART_STYLE_TYPE = [
        self::DASHBOARD_CHART_STYLE_TYPE_LINE => '折线图',
        self::DASHBOARD_CHART_STYLE_TYPE_BAR => '纵向柱状图',
        self::DASHBOARD_CHART_STYLE_TYPE_SCATTER => '横向柱状图',
        self::DASHBOARD_CHART_STYLE_TYPE_PIE => '饼图',
        self::DASHBOARD_CHART_STYLE_TYPE_GAUGE => '雷达图',
    ];

    const DASHBOARD_CHART_CONFIG_STATUS_ENABLE = 0;             //启用
    const DASHBOARD_CHART_CONFIG_STATUS_DISABLE = 1;            //启用
    const FEEDS_TEMPLATE_STATUS_ENABLE = 0;         //feeds_material_template:启用
    const FEEDS_TEMPLATE_STATUS_DISABLE = 1;        //feeds_material_template:停用
    const STRATEGY_DICT = 'strategy_dict';
    const STRATEGY_SERVING_DICT = 'strategy_serving_dict';
    const STRATEGY_DMP_IOS_DICT = 'strategy_dmp_ios_dict';
    const STRATEGY_DMP_ANDROID_DICT = 'strategy_dmp_android_dict';

    /*     * *****报表融合数据start****** */
    const REPORT_TEMPLATE_UC = 1;
    const REPORT_TEMPLATE_COMMUNITY = 2;
    const REPORT_TEMPLATE_SEM = 3;
    const REPORT_TEMPLATE_CONVERSION = 4;
    const REPORT_TEMPLATE_KOL = 5;

    public static $REPOTR_TEMPLATE = [
        self::REPORT_TEMPLATE_UC => 'UC模版',
        self::REPORT_TEMPLATE_COMMUNITY => '社群模版',
        self::REPORT_TEMPLATE_SEM => 'SEM模版',
        self::REPORT_TEMPLATE_CONVERSION => '转化模版',
        self::REPORT_TEMPLATE_KOL => 'KOL模版',
    ];

    //报表融合-文件状态
    const REPORT_FILE_UPLOAD_STATUS_0 = 0;
    const REPORT_FILE_UPLOAD_STATUS_1 = 1;
    const REPORT_FILE_UPLOAD_STATUS_2 = 2;

    public static $REPORT_FILE_UPLOAD_STATUS = [
        self::REPORT_FILE_UPLOAD_STATUS_0 => '已上传',
        self::REPORT_FILE_UPLOAD_STATUS_1 => '已导入',
        self::REPORT_FILE_UPLOAD_STATUS_2 => '已取消',
    ];

    //报表融合-模版状态
    const REPORT_FILE_TEMPLATE_STATUS_0 = 0;
    const REPORT_FILE_TEMPLATE_STATUS_1 = 1;

    public static $REPORT_FILE_TEMPLATE_STATUS = [
        self::REPORT_FILE_TEMPLATE_STATUS_0 => '有效',
        self::REPORT_FILE_TEMPLATE_STATUS_1 => '删除',
    ];

    //报表融合-模版状态
    const REPORT_FILE_TASK_SYNCHRO_STATUS_0 = 0;
    const REPORT_FILE_TASK_SYNCHRO_STATUS_1 = 1;

    public static $REPORT_FILE_TASK_SYNCHRO_STATUS = [
        self::REPORT_FILE_TASK_SYNCHRO_STATUS_0 => '未同步',
        self::REPORT_FILE_TASK_SYNCHRO_STATUS_1 => '已同步',
    ];

    //报表融合-模版配置字段类型
    const REPORT_TEMPLATE_FIELD_TYPE_INT = 'int';
    const REPORT_TEMPLATE_FIELD_TYPE_STRING = 'string';
    const REPORT_TEMPLATE_FIELD_TYPE_FLOAT = 'float';
    const REPORT_TEMPLATE_FIELD_TYPE_DATE = 'date';

    public static $REPORT_TEMPLATE_FIELD_TYPE = [
        self::REPORT_TEMPLATE_FIELD_TYPE_INT => '数字',
        self::REPORT_TEMPLATE_FIELD_TYPE_STRING => '字符串',
        self::REPORT_TEMPLATE_FIELD_TYPE_FLOAT => '金额',
        self::REPORT_TEMPLATE_FIELD_TYPE_DATE => '日期',
    ];

    /*     * *****报表融合数据end****** */

    //adset landinginfo
    const ADSET_LANDINGINFO_LANDING_PAGE = 1;
    const ADSET_LANDINGINFO_IMP_MONITOR = 2;
    const ADSET_LANDINGINFO_CLICK_MONITOR = 3;
    const ADSET_LANDINGINFO_APK = 4;
    const ADSET_LANDINGINFO_APP_NOTICE_URL = 5;
    const ADSET_LANDINGINFO_APP_PACAKAGE_NAME = 6;
    const ADSET_LANDINGINFO_APPSTORE_URL = 7;
    const ADSET_LANDINGINFO_DEEPLINK_URL = 8;
    //download type
    const MOB_DOWNLOAD_TYPE_APPSTOR = 1;
    const MOB_DOWNLOAD_TYPE_H5 = 2;
    const MOB_DOWNLOAD_TYPE_APK = 3;

    //商铺定义
    const STORE_OBJECT_CREATE = 'object_create_store';
    const STORE_OBJECT_UPDATE = 'object_update_store';
    const STORE_OBJECT_BATCH_UPDATE = 'object_batch_update_store';
    const STORE_OBJECT_DELETE = 'object_delete_store';
    //人员定义
    const PERSON_OBJECT_CREATE = 'object_create_person';
    const PERSON_OBJECT_UPDATE = 'object_update_person';
    const PERSON_OBJECT_BATCH_UPDATE = 'object_batch_update_person';
    const PERSON_OBJECT_DELETE = 'object_delete_person';
    
 /* --------事件案件 全状态--------- */
    //事件处理状态 已发现未上报
    const STATUS_EVENT_NOT_REPORT = 1;
    //事件处理状态 已上报
    const STATUS_EVENT_REPORT = 2;
    //事件处理状态 已受理
    const STATUS_EVENT_ACCEPTANCE = 3;
    //事件处理状态 已立案
    const STATUS_EVENT_CASE = 4;
    //事件处理状态 不立案
    const STATUS_EVENT_NOT_CASE = 5;
    //案件处理状态 已指派
    const STATUS_ORDER_DISPATCH = 6;
    //案件处理状态 已接单
    const STATUS_ORDER_ACCEPT = 7;
    //案件处理状态 申请改派
    const STATUS_ORDER_APPLY_REASSIGNMENT = 8;
    //案件处理状态 已改派
    const STATUS_ORDER_REASSIGNMENT = 9;
    //案件处理状态 已处置
    const STATUS_ORDER_RESOLVE = 10;
    //案件处理状态 已指定审核人
    const STATUS_ORDER_AUDIT_SUMBIT = 11;
    //案件处理状态 审核通过
    const STATUS_ORDER_AUDIT_SUCCESS = 12;
    //案件处理状态 审核驳回
    const STATUS_ORDER_AUDIT_FAILED = 13;
    //PC端退单
    const STATUS_ORDER_CHARGE_BACK_PC = 14;
    //APP端退单
    const STATUS_ORDER_CHARGE_BACK_APP = 15;
    //案件处理状态 已结案
    const STATUS_ORDER_COMPLETE = 16;
    
    //清单分类
    const EVENT_TYPE_ONE = 1;
    const EVENT_TYPE_CYCLICITY = 2;
    public static $EVENT_TYPE_LIST = [
        self::EVENT_TYPE_ONE => '一次性',
        self::EVENT_TYPE_CYCLICITY => '周期性',
    ];
    
    //1-商铺 2-楼宇 3-小区 4-工地 5-公司 6-人
    const TARGET_TYPE_STORE = 1;
    const TARGET_TYPE_BUILDING = 2;
    const TARGET_TYPE_ESTATE = 3;
    const TARGET_TYPE_CONSTRUCTION = 4;
    const TARGET_TYPE_COMPANY = 5;
    const TARGET_TYPE_PERSON = 6;
    public static $TARGET_TYPE_LIST = [
        self::TARGET_TYPE_STORE => '商铺',
        self::TARGET_TYPE_BUILDING => '楼宇',
        self::TARGET_TYPE_ESTATE => '小区',
        self::TARGET_TYPE_CONSTRUCTION => '工地',
        self::TARGET_TYPE_COMPANY => '公司',
        self::TARGET_TYPE_PERSON => '人',
    ];

    //排摸类型 1-排摸 2-核查 3-重点监测
    const EPIDEMIC_EVENT_TYPE_TOUCH = 1;
    const EPIDEMIC_EVENT_TYPE_CHECK = 2;
    const EPIDEMIC_EVENT_TYPE_IMPORTANT = 3;
    public static $EPIDEMIC_EVENT_TYPE_LIST = [
        self::EPIDEMIC_EVENT_TYPE_TOUCH =>'排摸',
        self::EPIDEMIC_EVENT_TYPE_CHECK =>'核查',
        self::EPIDEMIC_EVENT_TYPE_IMPORTANT =>'重点监测',
    ];
    
    //事件分类 1-医学观察 2-区域消毒 3-口罩预约
    const EPIDEMIC_OPERATE_TYPE_MEDICAL_OBSERVATION = 1;
    const EPIDEMIC_OPERATE_TYPE_AREA_DISINFECTION = 2;
    const EPIDEMIC_OPERATE_TYPE_MASK_APPOINTMENT = 3;
    const EPIDEMIC_OPERATE_TYPE_FLOOR_DISINFECTION = 4;
    const EPIDEMIC_OPERATE_SHOP_INSPECTION = 5;
    const EPIDEMIC_OPERATE_TYPE_SHOP_CLOSED = 6;
    const EPIDEMIC_OPERATE_TYPE_PERSON_OBSERVATION = 7;
    const EPIDEMIC_OPERATE_TYPE_ESTATE = 8;   
    const EPIDEMIC_OPERATE_TYPE_ESTATE_OPEN_EXIT = 9;
    const EPIDEMIC_OPERATE_TYPE_ESTATE_CLOSE_EXIT = 10;
    const EPIDEMIC_OPERATE_TYPE_ESTATE_ELEVATOR_DISINFECTION = 11;
    const EPIDEMIC_OPERATE_TYPE_BUILDING_ELEVATOR_DISINFECTION = 12;
    const EPIDEMIC_OPERATE_TYPE_MEDICAL_OBSERVATION_LOSE_CONTROL = 13;
    const EPIDEMIC_OPERATE_TYPE_ESTATE_GATE_MANAGE = 14;
    const EPIDEMIC_OPERATE_TYPE_FEVER_COLLECT = 20;
    
    public static $EPIDEMIC_OPERATE_TYPE_LIST = [
        self::EPIDEMIC_OPERATE_TYPE_MEDICAL_OBSERVATION =>'测温观察',
        self::EPIDEMIC_OPERATE_TYPE_AREA_DISINFECTION =>'防盗门消毒',
        self::EPIDEMIC_OPERATE_TYPE_MASK_APPOINTMENT =>'口罩预约',
        self::EPIDEMIC_OPERATE_TYPE_FLOOR_DISINFECTION => '重点楼层消毒',
        self::EPIDEMIC_OPERATE_SHOP_INSPECTION => '商铺巡检',
        self::EPIDEMIC_OPERATE_TYPE_SHOP_CLOSED => '商铺关闭',
        self::EPIDEMIC_OPERATE_TYPE_PERSON_OBSERVATION => '人员核查',
        self::EPIDEMIC_OPERATE_TYPE_ESTATE => '小区相关信息摸排',
        self::EPIDEMIC_OPERATE_TYPE_ESTATE_OPEN_EXIT => '小区出入口巡检',
        self::EPIDEMIC_OPERATE_TYPE_ESTATE_CLOSE_EXIT => '小区出入口关闭',
        self::EPIDEMIC_OPERATE_TYPE_ESTATE_ELEVATOR_DISINFECTION => '小区电梯消毒',
        self::EPIDEMIC_OPERATE_TYPE_BUILDING_ELEVATOR_DISINFECTION => '办公楼宇电梯消毒',
        self::EPIDEMIC_OPERATE_TYPE_MEDICAL_OBSERVATION_LOSE_CONTROL => '医观失控人员',
        self::EPIDEMIC_OPERATE_TYPE_ESTATE_GATE_MANAGE => '小区门岗管理',
        self::EPIDEMIC_OPERATE_TYPE_FEVER_COLLECT => '发热筛选零报告'
    ];
    //场所类型
    const AREA_TYPE_STORE = 1;
    const AREA_TYPE_BUILDING = 2;
    const AREA_TYPE_ESTATE = 3;
    const AREA_TYPE_CONSTRUCTION    = 4;
    const AREA_TYPE_COMPANY = 5;
}
